/**
 * Created by ex-chenjt on 2017/4/14.
 */

/**
 * the polyfill for the remove() method in Internet Explorer 9 and higher
 */
export const remove = (function() {
	return function(element) {
		if (element.hasOwnProperty('remove')) {
			element.remove();
		} else {
			element.parentNode.removeChild(element);
		}
	}
})();